home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2001 August
/
CMycha200108.iso
/
Zaczarowane
/
start.swf
/
scripts
/
DefineButton2_692
/
BUTTONCONDACTION on(release).as
< prev
Wrap
Text File
|
2001-06-06
|
902b
|
21 lines
on(release){
if(!_root.mc_scroll.mc_rzeczy.mc_r4.zapakowany == true)
{
stopDrag();
x = getProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _X);
y = getProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _Y);
_root.kupa = x + "," + (y - my);
if(-350 < getProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _X) && getProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _X) < -200 && -500 < getProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _Y) - my && getProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _Y) - my < -400)
{
setProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _visible, false);
_root.mc_scroll.mc_rzeczy.mc_r4.zapakowany = true;
}
else
{
setProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _X, x_pos);
setProperty(_root.mc_scroll.mc_rzeczy.mc_r4, _Y, y_pos);
_root.mc_scroll.mc_rzeczy.mc_r4.zapakowany = false;
}
}
}